﻿class PlayerBase extends egret.Sprite implements iplayer {
    public play(): void {
    }

    public stop(): void {
    }

    public pause(): void {
    }

    public resume(): void {
    }

    public initData(_loader: PaintLoader): void {
        this.loader = _loader;
        this.paint = this.loader.paint;
    }

    public dispose(): void {
    }

    public finish(): void {
        this.dispatchEvent(new egret.Event(egret.Event.COMPLETE));
    }

    protected paint: any;
    protected loader: PaintLoader;
    protected getRes(key:string): any {
        return this.loader.getRes(key);
    }
} 